package com.xyz.entity.mapper;

import com.xyz.entity.pojo.RepairWorkOrder;
import com.xyz.entity.pojo.RepairWorkOrderExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RepairWorkOrderMapper {
    long countByExample(RepairWorkOrderExample example);

    int deleteByExample(RepairWorkOrderExample example);

    int deleteByPrimaryKey(Long repId);

    int insert(RepairWorkOrder record);

    int insertSelective(RepairWorkOrder record);

    List<RepairWorkOrder> selectByExample(RepairWorkOrderExample example);

    RepairWorkOrder selectByPrimaryKey(Long repId);

    int updateById(@Param(value = "id") Long repId,@Param(value = "maintenEmployeeUsersId") String maintenEmployeeUsersId);

    int updateByExampleSelective(@Param("record") RepairWorkOrder record, @Param("example") RepairWorkOrderExample example);

    int updateByExample(@Param("record") RepairWorkOrder record, @Param("example") RepairWorkOrderExample example);

    int updateByPrimaryKeySelective(RepairWorkOrder record);

    int updateByPrimaryKey(RepairWorkOrder record);

    /*根据时间查询出在工状态员工idList*/
    List<Long> ruleFreeTimeWorkList(@Param("employeeTime") String employeeTime);
}